//
//  OCPerson.m
//  test_cpp_lib
//
//  Created by CallMeDoby on 2021/1/3.
//

#import "OCPerson.h"
#import "test_cpp_lib-Swift.h"

@interface OCPerson ()

@property (strong, nonatomic) NSString *name;
@property (assign, nonatomic) NSInteger age;
@property (assign, nonatomic) BOOL isMale;

@end

@implementation OCPerson

- (NSString *)getName {
    return self.name;
}

- (void)printInfo {
    NSLog(@"swift call oc: name = %@, age = %li, ismale = %d", self.name, self.age, self.isMale);
    
}

- (void)callSwiftFunc {
    
    SwiftPerson *person = [[SwiftPerson alloc] init];
    NSString *name = person.name;
    NSLog(@"oc call swiftPerson name = %@, callName = %@", name, [person getName]);
}

@end
